<%@ page import="com.hyd.issues.AppConfiguration" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%!
    private boolean isLogin(HttpSession session) {
        return session.getAttribute("user") != null;
    }

    // todo: Not Implemented yet.
    private boolean applicationConfigured() {
        return AppConfiguration.getBoolean("app.configured");
    }

%>
<%
    if (isLogin(request.getSession())) {
        response.sendRedirect("main.action");
    } else {
        response.sendRedirect("login.jsp");
    }

%>